#include<bits/stdc++.h> 
using namespace std;
//	给定三个整数ABC，需要判断A+B是否>C。其中ABC都是(-2^63, 2^63)
//1.第一行给定一个正整数T≤10，表示测试用例数。然后T行，每一行包括A，B，C三个数
//2.对于每个测试用例输出Case #X: true或者false。X表示用例编号，从1开始
//3.字符串比较，大整数加减法
//考的是细心，其他的没啥。网上也有人用long double直接做出结果的，乐 
bool compare(string A,string B){
	if(A.length()!=B.length()) return A.length()<B.length();
	return A<B;
}
string add(string A, string B){
	string ans = "";
	int t = 1;
	int c = 0;
	int lenA = A.length(),lenB = B.length(); 
	if(A[0]=='-'&&B[0]=='-' || A[0]!='-'&&B[0]!='-'){
		if(A[0]=='-'){
			A = A.substr(1);
			B = B.substr(1);
			lenA--;
			lenB--;
			t = -1;
		}
		if(lenA<lenB){
			string tmp;
			tmp = A;
			A = B;
			B = tmp;
			int l;
			l = lenA;
			lenA = lenB;
			lenB = l;
		}
		for(int i = 0;i<lenB;i++){
			int a = A[lenA-i-1] - '0',b = B[lenB-i-1] - '0';
			int m = a+b+c;
			c = m/10;
			stringstream ss;
			ss<<(m%10);
			ans = ss.str()+ans;
		}
		int l = lenB;
		while(l!=lenA){
			int m = (A[lenA-l-1] - '0') + c;
			c = m / 10;
			stringstream ss;
			ss<<(m%10);
			ans = ss.str()+ans;
			l++;
		}
		if(c!=0){
			stringstream ss;
			ss<<c;
			ans = ss.str()+ans;
		}
		if(t==-1) ans = "-" + ans;
	}
	else if(A[0]=='-' || B[0]=='-'){
		if(A[0]=='-'){
			A = A.substr(1);
			lenA--;	
		}
		else{
			B = B.substr(1);
			lenB--;
			t = -1;
		}
		if(compare(A,B)){
			string tmp;
			tmp = A;
			A = B;
			B = tmp;
			int l;
			l = lenA;
			lenA = lenB;
			lenB = l;
			t *= -1;
		}
		for(int i = 0;i<lenB;i++){
			int a = A[lenA-i-1] - '0', b = B[lenB-i-1]-'0';
			int m = a - b + c;
			if(m<0) c = -1;
			else c = 0;
			stringstream ss;
			ss<<((10+m)%10);
			ans = ss.str()+ans;
		}
		int l = lenB;
		while(l!=lenA){
			int m = (A[lenA-l-1]-'0') + c;
			if(m<0) c = -1;
			else c = 0;
			stringstream ss;
			ss<<((10+m)%10);
			ans = ss.str()+ans;
			l++;
		}
		int pos = -1;
		for(int i = 0;i<ans.length();i++){
			if(ans[i]!='0'){
				pos = i;
				break;
			}
		}
		if(pos==-1) ans = "0";
		else if(pos!=-1){
			ans = ans.substr(pos);
			if(t==1) ans = "-" + ans;
		}
	}
	return ans;
}
bool compare(string A,string B,string C){
	string sum_ = add(A,B);
	if(sum_[0]=='-'&&C[0]!='-') return false;
	else if(sum_[0]!='-'&&C[0]=='-') return true;
	else if(sum_[0]!='-'&&C[0]!='-')
	{
		if(sum_.length()>C.length()) return true;
		else if(sum_.length()<C.length()) return false;
		for(int i = 0;i<sum_.length();i++){
			if(sum_[i]!=C[i]) return sum_[i]>C[i];
		}
	}
	else {
		if(sum_.length()<C.length()) return true;
		else if(sum_.length()>C.length()) return false;
		for(int i = 0;i<sum_.length();i++){
			if(sum_[i]!=C[i]) return sum_[i]<C[i];
		}
	}
	return false;
}
int main(){
	string A,B,C;
	int T;
	cin>>T;
	for(int i = 1;i<=T;i++){
		cin>>A>>B>>C;
		cout<<"Case #"<<i<<": ";
		if(compare(A,B,C)) cout<<"true"<<endl;
		else cout<<"false"<<endl;
	}
	return 0;
} 